<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    .one {
        width: 100px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .many {
        width: 200px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

</style>
<body>
<div class="one">
    sadasdasdasdaasdasd
</div>
<div class="many">
    <p>sadasdasdasdaasdasdasddddddddddddddddddd
    dddddddddd
        asdsaddddddddd
    asdasdsadsad
    </p>
</div>
</body>
</html>
